namespace QMVnSoft.Lists
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.Properties;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormDmVtEditor : FormListEditor
    {
        private IContainer components;
        private bool ib_PictureChanged;
        private string is_PicturePath;
        private LabelControl lblDvt;
        private LabelControl lblDvt_E;
        private LabelControl lblDvt0;
        private LabelControl lblDvt1;
        private LabelControl lblDvt2;
        private LabelControl lblDvt3;
        private LabelControl lblGia;
        private LabelControl lblHe_So0;
        private LabelControl lblHe_So1;
        private LabelControl lblHe_So2;
        private LabelControl lblHe_So3;
        private LabelControl lblIs_Stop;
        private LabelControl lblIs_Stop0;
        private LabelControl lblLoai_Vt;
        private LabelControl lblLoai_Vt0;
        private LabelControl lblMa_Nh_Dm;
        private LabelControl lblMa_Nh_Vt;
        private LabelControl lblMa_Sp;
        private LabelControl lblMa_Vt;
        private LabelControl lblSL_Ton_Max;
        private LabelControl lblSL_Ton_Min;
        private LabelControl lblTen_Vt;
        private LabelControl lblTen_Vt_E;
        private LabelControl lblThue_Xuat;
        private LabelControl lblTk_BHTL;
        private LabelControl lblTk_Ck;
        private LabelControl lblTk_Dt;
        private LabelControl lblTk_Gv;
        private LabelControl lblTk_Vt;
        private System.Windows.Forms.PictureBox PictureBox;
        private Panel pnlPicture;
        private TextControl txtDvt;
        private TextControl txtDvt_E;
        private TextControl txtDvt0;
        private TextControl txtDvt1;
        private TextControl txtDvt2;
        private TextControl txtDvt3;
        private TextNumeric txtGia_Ban;
        private TextNumeric txtGia_Ban0;
        private TextNumeric txtGia_Ban1;
        private TextNumeric txtGia_Ban2;
        private TextNumeric txtGia_Ban3;
        private TextNumeric txtGia_Mua;
        private TextNumeric txtGia_Mua0;
        private TextNumeric txtGia_Mua1;
        private TextNumeric txtGia_Mua2;
        private TextNumeric txtGia_Mua3;
        private TextNumeric txtHe_So0;
        private TextNumeric txtHe_So1;
        private TextNumeric txtHe_So2;
        private TextNumeric txtHe_So3;
        private TextOption txtIs_Stop;
        private TextOption txtLoai_Vt;
        private TextSearch txtMa_Nh_Dm;
        private TextSearch txtMa_Nh_Vt;
        private TextSearch txtMa_Sp;
        private TextControl txtMa_Vt;
        private TextNumeric txtSL_Ton_Max;
        private TextNumeric txtSL_Ton_Min;
        private TextControl txtTen_Nh_Dm;
        private TextControl txtTen_Nh_Vt;
        private TextControl txtTen_Sp;
        private TextControl txtTen_Tk_Ck;
        private TextControl txtTen_Tk_Dt;
        private TextControl txtTen_Tk_Gv;
        private TextControl txtTen_Tk_HBTL;
        private TextControl txtTen_Tk_Vt;
        private TextControl txtTen_Vt;
        private TextControl txtTen_Vt_E;
        private TextNumeric txtThue_Xuat;
        private TextSearch txtTk_Ck;
        private TextSearch txtTk_Dt;
        private TextSearch txtTk_Gv;
        private TextSearch txtTk_HBTL;
        private TextSearch txtTk_Vt;

        public FormDmVtEditor()
        {
            this.InitializeComponent();
            this.txtDvt0.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtHe_So0.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Mua0.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Ban0.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtDvt1.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtHe_So1.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Mua1.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Ban1.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtDvt2.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtHe_So2.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Mua2.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Ban2.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtDvt3.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtHe_So3.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Mua3.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtGia_Ban3.GotFocus += new EventHandler(this.txtDvt0_GotFocus);
            this.txtMa_Sp.GotFocus += new EventHandler(this.txtMa_Sp_GotFocus);
            this.txtLoai_Vt.LostFocus += new EventHandler(this.txtMa_Sp_GotFocus);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormDmVtEditor));
            this.txtMa_Vt = new QMVnSoft.Controls.TextControl();
            this.lblMa_Vt = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Vt = new QMVnSoft.Controls.TextControl();
            this.lblTen_Vt = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Vt_E = new QMVnSoft.Controls.TextControl();
            this.lblTen_Vt_E = new QMVnSoft.Controls.LabelControl();
            this.txtDvt = new QMVnSoft.Controls.TextControl();
            this.lblDvt = new QMVnSoft.Controls.LabelControl();
            this.txtDvt_E = new QMVnSoft.Controls.TextControl();
            this.lblDvt_E = new QMVnSoft.Controls.LabelControl();
            this.txtDvt0 = new QMVnSoft.Controls.TextControl();
            this.lblDvt0 = new QMVnSoft.Controls.LabelControl();
            this.txtDvt1 = new QMVnSoft.Controls.TextControl();
            this.lblDvt1 = new QMVnSoft.Controls.LabelControl();
            this.txtDvt2 = new QMVnSoft.Controls.TextControl();
            this.lblDvt2 = new QMVnSoft.Controls.LabelControl();
            this.txtGia_Mua = new QMVnSoft.Controls.TextNumeric();
            this.txtLoai_Vt = new QMVnSoft.Controls.TextOption();
            this.lblLoai_Vt = new QMVnSoft.Controls.LabelControl();
            this.lblIs_Stop = new QMVnSoft.Controls.LabelControl();
            this.txtIs_Stop = new QMVnSoft.Controls.TextOption();
            this.txtGia_Ban = new QMVnSoft.Controls.TextNumeric();
            this.txtHe_So0 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Mua0 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Ban0 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Mua1 = new QMVnSoft.Controls.TextNumeric();
            this.txtHe_So1 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Ban1 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Mua2 = new QMVnSoft.Controls.TextNumeric();
            this.txtHe_So2 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Ban2 = new QMVnSoft.Controls.TextNumeric();
            this.txtSL_Ton_Min = new QMVnSoft.Controls.TextNumeric();
            this.lblSL_Ton_Min = new QMVnSoft.Controls.LabelControl();
            this.lblSL_Ton_Max = new QMVnSoft.Controls.LabelControl();
            this.txtSL_Ton_Max = new QMVnSoft.Controls.TextNumeric();
            this.lblThue_Xuat = new QMVnSoft.Controls.LabelControl();
            this.txtThue_Xuat = new QMVnSoft.Controls.TextNumeric();
            this.txtTk_Vt = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Tk_Vt = new QMVnSoft.Controls.TextControl();
            this.lblTk_Vt = new QMVnSoft.Controls.LabelControl();
            this.lblHe_So0 = new QMVnSoft.Controls.LabelControl();
            this.lblHe_So1 = new QMVnSoft.Controls.LabelControl();
            this.lblHe_So2 = new QMVnSoft.Controls.LabelControl();
            this.lblTk_Gv = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Gv = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Tk_Gv = new QMVnSoft.Controls.TextControl();
            this.lblTk_Dt = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Dt = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Tk_Dt = new QMVnSoft.Controls.TextControl();
            this.lblTk_Ck = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Ck = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Tk_Ck = new QMVnSoft.Controls.TextControl();
            this.lblTk_BHTL = new QMVnSoft.Controls.LabelControl();
            this.txtTk_HBTL = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Tk_HBTL = new QMVnSoft.Controls.TextControl();
            this.lblMa_Nh_Vt = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Nh_Vt = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Nh_Vt = new QMVnSoft.Controls.TextControl();
            this.lblMa_Sp = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Sp = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Sp = new QMVnSoft.Controls.TextControl();
            this.lblMa_Nh_Dm = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Nh_Dm = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Nh_Dm = new QMVnSoft.Controls.TextControl();
            this.pnlPicture = new System.Windows.Forms.Panel();
            this.PictureBox = new System.Windows.Forms.PictureBox();
            this.lblLoai_Vt0 = new QMVnSoft.Controls.LabelControl();
            this.lblIs_Stop0 = new QMVnSoft.Controls.LabelControl();
            this.lblGia = new QMVnSoft.Controls.LabelControl();
            this.txtDvt3 = new QMVnSoft.Controls.TextControl();
            this.lblHe_So3 = new QMVnSoft.Controls.LabelControl();
            this.lblDvt3 = new QMVnSoft.Controls.LabelControl();
            this.txtGia_Mua3 = new QMVnSoft.Controls.TextNumeric();
            this.txtHe_So3 = new QMVnSoft.Controls.TextNumeric();
            this.txtGia_Ban3 = new QMVnSoft.Controls.TextNumeric();
            this.pnlPicture.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.PictureBox)).BeginInit();
            this.SuspendLayout();
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 471);
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.FirstFilter = "Type = \'VT1\'";
            this.txtMa_Loai1.Location = new System.Drawing.Point(123, 468);
            this.txtMa_Loai1.Size = new System.Drawing.Size(188, 20);
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.FirstFilter = "Type = \'VT2\'";
            this.txtMa_Loai2.Location = new System.Drawing.Point(314, 468);
            this.txtMa_Loai2.Size = new System.Drawing.Size(190, 20);
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.FirstFilter = "Type = \'VT3\'";
            this.txtMa_Loai3.Location = new System.Drawing.Point(507, 468);
            this.txtMa_Loai3.Size = new System.Drawing.Size(188, 20);
            // 
            // txtMa_Vt
            // 
            this.txtMa_Vt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Vt.CheckTextSearched = false;
            this.txtMa_Vt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Vt.Location = new System.Drawing.Point(123, 28);
            this.txtMa_Vt.MaxLength = 32;
            this.txtMa_Vt.Name = "txtMa_Vt";
            this.txtMa_Vt.OldValue = null;
            this.txtMa_Vt.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Vt.TabIndex = 0;
            this.txtMa_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Vt.Value = ((object)(resources.GetObject("txtMa_Vt.Value")));
            // 
            // lblMa_Vt
            // 
            this.lblMa_Vt.AutoSize = true;
            this.lblMa_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Vt.Location = new System.Drawing.Point(12, 31);
            this.lblMa_Vt.Name = "lblMa_Vt";
            this.lblMa_Vt.Size = new System.Drawing.Size(52, 14);
            this.lblMa_Vt.TabIndex = 4;
            this.lblMa_Vt.Text = "Mã vật tư";
            // 
            // txtTen_Vt
            // 
            this.txtTen_Vt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Vt.CheckTextSearched = false;
            this.txtTen_Vt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Vt.Location = new System.Drawing.Point(123, 50);
            this.txtTen_Vt.MaxLength = 128;
            this.txtTen_Vt.Name = "txtTen_Vt";
            this.txtTen_Vt.OldValue = null;
            this.txtTen_Vt.Size = new System.Drawing.Size(572, 20);
            this.txtTen_Vt.TabIndex = 1;
            this.txtTen_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_Vt.Value = ((object)(resources.GetObject("txtTen_Vt.Value")));
            // 
            // lblTen_Vt
            // 
            this.lblTen_Vt.AutoSize = true;
            this.lblTen_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Vt.Location = new System.Drawing.Point(12, 53);
            this.lblTen_Vt.Name = "lblTen_Vt";
            this.lblTen_Vt.Size = new System.Drawing.Size(56, 14);
            this.lblTen_Vt.TabIndex = 4;
            this.lblTen_Vt.Text = "Tên vật tư";
            // 
            // txtTen_Vt_E
            // 
            this.txtTen_Vt_E.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Vt_E.CheckTextSearched = false;
            this.txtTen_Vt_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Vt_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Vt_E.Location = new System.Drawing.Point(123, 72);
            this.txtTen_Vt_E.MaxLength = 128;
            this.txtTen_Vt_E.Name = "txtTen_Vt_E";
            this.txtTen_Vt_E.OldValue = null;
            this.txtTen_Vt_E.Size = new System.Drawing.Size(572, 20);
            this.txtTen_Vt_E.TabIndex = 2;
            this.txtTen_Vt_E.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Vt_E.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_Vt_E.Value = ((object)(resources.GetObject("txtTen_Vt_E.Value")));
            // 
            // lblTen_Vt_E
            // 
            this.lblTen_Vt_E.AutoSize = true;
            this.lblTen_Vt_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Vt_E.Location = new System.Drawing.Point(12, 75);
            this.lblTen_Vt_E.Name = "lblTen_Vt_E";
            this.lblTen_Vt_E.Size = new System.Drawing.Size(73, 14);
            this.lblTen_Vt_E.TabIndex = 4;
            this.lblTen_Vt_E.Text = "Tên tiếng Anh";
            // 
            // txtDvt
            // 
            this.txtDvt.CheckTextSearched = false;
            this.txtDvt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDvt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt.Location = new System.Drawing.Point(123, 94);
            this.txtDvt.MaxLength = 20;
            this.txtDvt.Name = "txtDvt";
            this.txtDvt.OldValue = null;
            this.txtDvt.Size = new System.Drawing.Size(100, 20);
            this.txtDvt.TabIndex = 3;
            this.txtDvt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtDvt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtDvt.Value = ((object)(resources.GetObject("txtDvt.Value")));
            // 
            // lblDvt
            // 
            this.lblDvt.AutoSize = true;
            this.lblDvt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt.Location = new System.Drawing.Point(12, 97);
            this.lblDvt.Name = "lblDvt";
            this.lblDvt.Size = new System.Drawing.Size(59, 14);
            this.lblDvt.TabIndex = 4;
            this.lblDvt.Text = "Đơn vị tính";
            // 
            // txtDvt_E
            // 
            this.txtDvt_E.CheckTextSearched = false;
            this.txtDvt_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDvt_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt_E.Location = new System.Drawing.Point(123, 116);
            this.txtDvt_E.MaxLength = 20;
            this.txtDvt_E.Name = "txtDvt_E";
            this.txtDvt_E.OldValue = null;
            this.txtDvt_E.Size = new System.Drawing.Size(100, 20);
            this.txtDvt_E.TabIndex = 4;
            this.txtDvt_E.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtDvt_E.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtDvt_E.Value = ((object)(resources.GetObject("txtDvt_E.Value")));
            // 
            // lblDvt_E
            // 
            this.lblDvt_E.AutoSize = true;
            this.lblDvt_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt_E.Location = new System.Drawing.Point(12, 119);
            this.lblDvt_E.Name = "lblDvt_E";
            this.lblDvt_E.Size = new System.Drawing.Size(107, 14);
            this.lblDvt_E.TabIndex = 4;
            this.lblDvt_E.Text = "Đơn vị tính tiếng Anh";
            // 
            // txtDvt0
            // 
            this.txtDvt0.CheckTextSearched = false;
            this.txtDvt0.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDvt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt0.Location = new System.Drawing.Point(123, 138);
            this.txtDvt0.MaxLength = 20;
            this.txtDvt0.Name = "txtDvt0";
            this.txtDvt0.OldValue = null;
            this.txtDvt0.Size = new System.Drawing.Size(100, 20);
            this.txtDvt0.TabIndex = 7;
            this.txtDvt0.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtDvt0.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtDvt0.Value = ((object)(resources.GetObject("txtDvt0.Value")));
            // 
            // lblDvt0
            // 
            this.lblDvt0.AutoSize = true;
            this.lblDvt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt0.Location = new System.Drawing.Point(12, 141);
            this.lblDvt0.Name = "lblDvt0";
            this.lblDvt0.Size = new System.Drawing.Size(77, 14);
            this.lblDvt0.TabIndex = 4;
            this.lblDvt0.Text = "Đơn vị quy đổi";
            // 
            // txtDvt1
            // 
            this.txtDvt1.CheckTextSearched = false;
            this.txtDvt1.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDvt1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt1.Location = new System.Drawing.Point(123, 160);
            this.txtDvt1.MaxLength = 20;
            this.txtDvt1.Name = "txtDvt1";
            this.txtDvt1.OldValue = null;
            this.txtDvt1.Size = new System.Drawing.Size(100, 20);
            this.txtDvt1.TabIndex = 11;
            this.txtDvt1.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtDvt1.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtDvt1.Value = ((object)(resources.GetObject("txtDvt1.Value")));
            // 
            // lblDvt1
            // 
            this.lblDvt1.AutoSize = true;
            this.lblDvt1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt1.Location = new System.Drawing.Point(12, 163);
            this.lblDvt1.Name = "lblDvt1";
            this.lblDvt1.Size = new System.Drawing.Size(77, 14);
            this.lblDvt1.TabIndex = 4;
            this.lblDvt1.Text = "Đơn vị quy đổi";
            // 
            // txtDvt2
            // 
            this.txtDvt2.CheckTextSearched = false;
            this.txtDvt2.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDvt2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt2.Location = new System.Drawing.Point(123, 182);
            this.txtDvt2.MaxLength = 20;
            this.txtDvt2.Name = "txtDvt2";
            this.txtDvt2.OldValue = null;
            this.txtDvt2.Size = new System.Drawing.Size(100, 20);
            this.txtDvt2.TabIndex = 15;
            this.txtDvt2.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtDvt2.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtDvt2.Value = ((object)(resources.GetObject("txtDvt2.Value")));
            // 
            // lblDvt2
            // 
            this.lblDvt2.AutoSize = true;
            this.lblDvt2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt2.Location = new System.Drawing.Point(12, 185);
            this.lblDvt2.Name = "lblDvt2";
            this.lblDvt2.Size = new System.Drawing.Size(77, 14);
            this.lblDvt2.TabIndex = 4;
            this.lblDvt2.Text = "Đơn vị quy đổi";
            // 
            // txtGia_Mua
            // 
            this.txtGia_Mua.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Mua.Location = new System.Drawing.Point(493, 116);
            this.txtGia_Mua.Name = "txtGia_Mua";
            this.txtGia_Mua.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Mua.OldValue = null;
            this.txtGia_Mua.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Mua.TabIndex = 5;
            this.txtGia_Mua.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Mua.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Mua.Value = ((object)(resources.GetObject("txtGia_Mua.Value")));
            // 
            // txtLoai_Vt
            // 
            this.txtLoai_Vt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtLoai_Vt.CheckTextSearched = false;
            this.txtLoai_Vt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtLoai_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtLoai_Vt.InputMask = "2,1,0";
            this.txtLoai_Vt.Location = new System.Drawing.Point(123, 270);
            this.txtLoai_Vt.Name = "txtLoai_Vt";
            this.txtLoai_Vt.OldValue = null;
            this.txtLoai_Vt.Size = new System.Drawing.Size(23, 20);
            this.txtLoai_Vt.TabIndex = 27;
            this.txtLoai_Vt.Text = "2";
            this.txtLoai_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtLoai_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtLoai_Vt.Value = "2";
            // 
            // lblLoai_Vt
            // 
            this.lblLoai_Vt.AutoSize = true;
            this.lblLoai_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLoai_Vt.Location = new System.Drawing.Point(12, 273);
            this.lblLoai_Vt.Name = "lblLoai_Vt";
            this.lblLoai_Vt.Size = new System.Drawing.Size(58, 14);
            this.lblLoai_Vt.TabIndex = 4;
            this.lblLoai_Vt.Text = "Loại vật tư";
            // 
            // lblIs_Stop
            // 
            this.lblIs_Stop.AutoSize = true;
            this.lblIs_Stop.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblIs_Stop.Location = new System.Drawing.Point(12, 251);
            this.lblIs_Stop.Name = "lblIs_Stop";
            this.lblIs_Stop.Size = new System.Drawing.Size(92, 14);
            this.lblIs_Stop.TabIndex = 4;
            this.lblIs_Stop.Text = "Đình chỉ giao dịch";
            // 
            // txtIs_Stop
            // 
            this.txtIs_Stop.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtIs_Stop.CheckTextSearched = false;
            this.txtIs_Stop.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtIs_Stop.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtIs_Stop.InputMask = "1,0";
            this.txtIs_Stop.Location = new System.Drawing.Point(123, 248);
            this.txtIs_Stop.Name = "txtIs_Stop";
            this.txtIs_Stop.OldValue = null;
            this.txtIs_Stop.Size = new System.Drawing.Size(23, 20);
            this.txtIs_Stop.TabIndex = 26;
            this.txtIs_Stop.Text = "1";
            this.txtIs_Stop.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtIs_Stop.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtIs_Stop.Value = "1";
            // 
            // txtGia_Ban
            // 
            this.txtGia_Ban.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Ban.Location = new System.Drawing.Point(595, 116);
            this.txtGia_Ban.Name = "txtGia_Ban";
            this.txtGia_Ban.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Ban.OldValue = null;
            this.txtGia_Ban.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Ban.TabIndex = 6;
            this.txtGia_Ban.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Ban.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Ban.Value = ((object)(resources.GetObject("txtGia_Ban.Value")));
            // 
            // txtHe_So0
            // 
            this.txtHe_So0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHe_So0.Location = new System.Drawing.Point(391, 138);
            this.txtHe_So0.Name = "txtHe_So0";
            this.txtHe_So0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtHe_So0.OldValue = null;
            this.txtHe_So0.Size = new System.Drawing.Size(100, 20);
            this.txtHe_So0.TabIndex = 8;
            this.txtHe_So0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtHe_So0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.RatioQuantity;
            this.txtHe_So0.Value = ((object)(resources.GetObject("txtHe_So0.Value")));
            // 
            // txtGia_Mua0
            // 
            this.txtGia_Mua0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Mua0.Location = new System.Drawing.Point(493, 138);
            this.txtGia_Mua0.Name = "txtGia_Mua0";
            this.txtGia_Mua0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Mua0.OldValue = null;
            this.txtGia_Mua0.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Mua0.TabIndex = 9;
            this.txtGia_Mua0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Mua0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Mua0.Value = ((object)(resources.GetObject("txtGia_Mua0.Value")));
            // 
            // txtGia_Ban0
            // 
            this.txtGia_Ban0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Ban0.Location = new System.Drawing.Point(595, 138);
            this.txtGia_Ban0.Name = "txtGia_Ban0";
            this.txtGia_Ban0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Ban0.OldValue = null;
            this.txtGia_Ban0.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Ban0.TabIndex = 10;
            this.txtGia_Ban0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Ban0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Ban0.Value = ((object)(resources.GetObject("txtGia_Ban0.Value")));
            // 
            // txtGia_Mua1
            // 
            this.txtGia_Mua1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Mua1.Location = new System.Drawing.Point(493, 160);
            this.txtGia_Mua1.Name = "txtGia_Mua1";
            this.txtGia_Mua1.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Mua1.OldValue = null;
            this.txtGia_Mua1.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Mua1.TabIndex = 13;
            this.txtGia_Mua1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Mua1.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Mua1.Value = ((object)(resources.GetObject("txtGia_Mua1.Value")));
            // 
            // txtHe_So1
            // 
            this.txtHe_So1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHe_So1.Location = new System.Drawing.Point(391, 160);
            this.txtHe_So1.Name = "txtHe_So1";
            this.txtHe_So1.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtHe_So1.OldValue = null;
            this.txtHe_So1.Size = new System.Drawing.Size(100, 20);
            this.txtHe_So1.TabIndex = 12;
            this.txtHe_So1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtHe_So1.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.RatioQuantity;
            this.txtHe_So1.Value = ((object)(resources.GetObject("txtHe_So1.Value")));
            // 
            // txtGia_Ban1
            // 
            this.txtGia_Ban1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Ban1.Location = new System.Drawing.Point(595, 160);
            this.txtGia_Ban1.Name = "txtGia_Ban1";
            this.txtGia_Ban1.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Ban1.OldValue = null;
            this.txtGia_Ban1.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Ban1.TabIndex = 14;
            this.txtGia_Ban1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Ban1.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Ban1.Value = ((object)(resources.GetObject("txtGia_Ban1.Value")));
            // 
            // txtGia_Mua2
            // 
            this.txtGia_Mua2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Mua2.Location = new System.Drawing.Point(493, 182);
            this.txtGia_Mua2.Name = "txtGia_Mua2";
            this.txtGia_Mua2.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Mua2.OldValue = null;
            this.txtGia_Mua2.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Mua2.TabIndex = 17;
            this.txtGia_Mua2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Mua2.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Mua2.Value = ((object)(resources.GetObject("txtGia_Mua2.Value")));
            // 
            // txtHe_So2
            // 
            this.txtHe_So2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHe_So2.Location = new System.Drawing.Point(391, 182);
            this.txtHe_So2.Name = "txtHe_So2";
            this.txtHe_So2.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtHe_So2.OldValue = null;
            this.txtHe_So2.Size = new System.Drawing.Size(100, 20);
            this.txtHe_So2.TabIndex = 16;
            this.txtHe_So2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtHe_So2.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.RatioQuantity;
            this.txtHe_So2.Value = ((object)(resources.GetObject("txtHe_So2.Value")));
            // 
            // txtGia_Ban2
            // 
            this.txtGia_Ban2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Ban2.Location = new System.Drawing.Point(595, 182);
            this.txtGia_Ban2.Name = "txtGia_Ban2";
            this.txtGia_Ban2.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Ban2.OldValue = null;
            this.txtGia_Ban2.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Ban2.TabIndex = 18;
            this.txtGia_Ban2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Ban2.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Ban2.Value = ((object)(resources.GetObject("txtGia_Ban2.Value")));
            // 
            // txtSL_Ton_Min
            // 
            this.txtSL_Ton_Min.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSL_Ton_Min.Location = new System.Drawing.Point(123, 226);
            this.txtSL_Ton_Min.Name = "txtSL_Ton_Min";
            this.txtSL_Ton_Min.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtSL_Ton_Min.OldValue = null;
            this.txtSL_Ton_Min.Size = new System.Drawing.Size(100, 20);
            this.txtSL_Ton_Min.TabIndex = 23;
            this.txtSL_Ton_Min.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSL_Ton_Min.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Quantity;
            this.txtSL_Ton_Min.Value = ((object)(resources.GetObject("txtSL_Ton_Min.Value")));
            // 
            // lblSL_Ton_Min
            // 
            this.lblSL_Ton_Min.AutoSize = true;
            this.lblSL_Ton_Min.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSL_Ton_Min.Location = new System.Drawing.Point(12, 229);
            this.lblSL_Ton_Min.Name = "lblSL_Ton_Min";
            this.lblSL_Ton_Min.Size = new System.Drawing.Size(109, 14);
            this.lblSL_Ton_Min.TabIndex = 4;
            this.lblSL_Ton_Min.Text = "Số lượng tồn tối thiểu";
            // 
            // lblSL_Ton_Max
            // 
            this.lblSL_Ton_Max.AutoSize = true;
            this.lblSL_Ton_Max.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSL_Ton_Max.Location = new System.Drawing.Point(287, 229);
            this.lblSL_Ton_Max.Name = "lblSL_Ton_Max";
            this.lblSL_Ton_Max.Size = new System.Drawing.Size(98, 14);
            this.lblSL_Ton_Max.TabIndex = 4;
            this.lblSL_Ton_Max.Text = "Số lượng tồn tối đa";
            // 
            // txtSL_Ton_Max
            // 
            this.txtSL_Ton_Max.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSL_Ton_Max.Location = new System.Drawing.Point(391, 226);
            this.txtSL_Ton_Max.Name = "txtSL_Ton_Max";
            this.txtSL_Ton_Max.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtSL_Ton_Max.OldValue = null;
            this.txtSL_Ton_Max.Size = new System.Drawing.Size(100, 20);
            this.txtSL_Ton_Max.TabIndex = 24;
            this.txtSL_Ton_Max.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSL_Ton_Max.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Quantity;
            this.txtSL_Ton_Max.Value = ((object)(resources.GetObject("txtSL_Ton_Max.Value")));
            // 
            // lblThue_Xuat
            // 
            this.lblThue_Xuat.AutoSize = true;
            this.lblThue_Xuat.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblThue_Xuat.Location = new System.Drawing.Point(538, 229);
            this.lblThue_Xuat.Name = "lblThue_Xuat";
            this.lblThue_Xuat.Size = new System.Drawing.Size(55, 14);
            this.lblThue_Xuat.TabIndex = 4;
            this.lblThue_Xuat.Text = "Thuế xuất";
            // 
            // txtThue_Xuat
            // 
            this.txtThue_Xuat.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtThue_Xuat.Location = new System.Drawing.Point(595, 226);
            this.txtThue_Xuat.Name = "txtThue_Xuat";
            this.txtThue_Xuat.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtThue_Xuat.OldValue = null;
            this.txtThue_Xuat.Size = new System.Drawing.Size(100, 20);
            this.txtThue_Xuat.TabIndex = 25;
            this.txtThue_Xuat.Text = "0.00";
            this.txtThue_Xuat.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtThue_Xuat.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.txtThue_Xuat.Value = ((object)(resources.GetObject("txtThue_Xuat.Value")));
            this.txtThue_Xuat.ZeroIsShown = true;
            // 
            // txtTk_Vt
            // 
            this.txtTk_Vt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Vt.CheckTextSearched = false;
            this.txtTk_Vt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Vt.FieldDisplay = "Ten_Tk";
            this.txtTk_Vt.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Vt.Location = new System.Drawing.Point(123, 292);
            this.txtTk_Vt.MaxLength = 32;
            this.txtTk_Vt.Name = "txtTk_Vt";
            this.txtTk_Vt.OldValue = null;
            this.txtTk_Vt.Size = new System.Drawing.Size(100, 20);
            this.txtTk_Vt.TabIndex = 28;
            this.txtTk_Vt.TableName = "DMTK";
            this.txtTk_Vt.TextDisplay = this.txtTen_Tk_Vt;
            this.txtTk_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Vt.Value = ((object)(resources.GetObject("txtTk_Vt.Value")));
            // 
            // txtTen_Tk_Vt
            // 
            this.txtTen_Tk_Vt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_Vt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Vt.CheckTextSearched = false;
            this.txtTen_Tk_Vt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Vt.Enabled = false;
            this.txtTen_Tk_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Vt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Vt.Location = new System.Drawing.Point(229, 295);
            this.txtTen_Tk_Vt.Name = "txtTen_Tk_Vt";
            this.txtTen_Tk_Vt.OldValue = null;
            this.txtTen_Tk_Vt.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Tk_Vt.TabIndex = 13;
            this.txtTen_Tk_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Vt.Value = ((object)(resources.GetObject("txtTen_Tk_Vt.Value")));
            // 
            // lblTk_Vt
            // 
            this.lblTk_Vt.AutoSize = true;
            this.lblTk_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Vt.Location = new System.Drawing.Point(12, 295);
            this.lblTk_Vt.Name = "lblTk_Vt";
            this.lblTk_Vt.Size = new System.Drawing.Size(84, 14);
            this.lblTk_Vt.TabIndex = 4;
            this.lblTk_Vt.Text = "Tài khoản vật tư";
            // 
            // lblHe_So0
            // 
            this.lblHe_So0.AutoSize = true;
            this.lblHe_So0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHe_So0.Location = new System.Drawing.Point(350, 141);
            this.lblHe_So0.Name = "lblHe_So0";
            this.lblHe_So0.Size = new System.Drawing.Size(35, 14);
            this.lblHe_So0.TabIndex = 4;
            this.lblHe_So0.Text = "Hệ số";
            // 
            // lblHe_So1
            // 
            this.lblHe_So1.AutoSize = true;
            this.lblHe_So1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHe_So1.Location = new System.Drawing.Point(350, 163);
            this.lblHe_So1.Name = "lblHe_So1";
            this.lblHe_So1.Size = new System.Drawing.Size(35, 14);
            this.lblHe_So1.TabIndex = 4;
            this.lblHe_So1.Text = "Hệ số";
            // 
            // lblHe_So2
            // 
            this.lblHe_So2.AutoSize = true;
            this.lblHe_So2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHe_So2.Location = new System.Drawing.Point(350, 185);
            this.lblHe_So2.Name = "lblHe_So2";
            this.lblHe_So2.Size = new System.Drawing.Size(35, 14);
            this.lblHe_So2.TabIndex = 4;
            this.lblHe_So2.Text = "Hệ số";
            // 
            // lblTk_Gv
            // 
            this.lblTk_Gv.AutoSize = true;
            this.lblTk_Gv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Gv.Location = new System.Drawing.Point(12, 317);
            this.lblTk_Gv.Name = "lblTk_Gv";
            this.lblTk_Gv.Size = new System.Drawing.Size(91, 14);
            this.lblTk_Gv.TabIndex = 4;
            this.lblTk_Gv.Text = "Tài khoản giá vốn";
            // 
            // txtTk_Gv
            // 
            this.txtTk_Gv.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Gv.CheckTextSearched = false;
            this.txtTk_Gv.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Gv.FieldDisplay = "Ten_Tk";
            this.txtTk_Gv.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_Gv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Gv.Location = new System.Drawing.Point(123, 314);
            this.txtTk_Gv.MaxLength = 32;
            this.txtTk_Gv.Name = "txtTk_Gv";
            this.txtTk_Gv.OldValue = null;
            this.txtTk_Gv.Size = new System.Drawing.Size(100, 20);
            this.txtTk_Gv.TabIndex = 29;
            this.txtTk_Gv.TableName = "DMTK";
            this.txtTk_Gv.TextDisplay = this.txtTen_Tk_Gv;
            this.txtTk_Gv.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Gv.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Gv.Value = ((object)(resources.GetObject("txtTk_Gv.Value")));
            // 
            // txtTen_Tk_Gv
            // 
            this.txtTen_Tk_Gv.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_Gv.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Gv.CheckTextSearched = false;
            this.txtTen_Tk_Gv.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Gv.Enabled = false;
            this.txtTen_Tk_Gv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Gv.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Gv.Location = new System.Drawing.Point(229, 317);
            this.txtTen_Tk_Gv.Name = "txtTen_Tk_Gv";
            this.txtTen_Tk_Gv.OldValue = null;
            this.txtTen_Tk_Gv.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Tk_Gv.TabIndex = 13;
            this.txtTen_Tk_Gv.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Gv.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Gv.Value = ((object)(resources.GetObject("txtTen_Tk_Gv.Value")));
            // 
            // lblTk_Dt
            // 
            this.lblTk_Dt.AutoSize = true;
            this.lblTk_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Dt.Location = new System.Drawing.Point(12, 339);
            this.lblTk_Dt.Name = "lblTk_Dt";
            this.lblTk_Dt.Size = new System.Drawing.Size(104, 14);
            this.lblTk_Dt.TabIndex = 4;
            this.lblTk_Dt.Text = "Tài khoản doanh thu";
            // 
            // txtTk_Dt
            // 
            this.txtTk_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Dt.CheckTextSearched = false;
            this.txtTk_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Dt.FieldDisplay = "Ten_Tk";
            this.txtTk_Dt.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Dt.Location = new System.Drawing.Point(123, 336);
            this.txtTk_Dt.MaxLength = 32;
            this.txtTk_Dt.Name = "txtTk_Dt";
            this.txtTk_Dt.OldValue = null;
            this.txtTk_Dt.Size = new System.Drawing.Size(100, 20);
            this.txtTk_Dt.TabIndex = 30;
            this.txtTk_Dt.TableName = "DMTK";
            this.txtTk_Dt.TextDisplay = this.txtTen_Tk_Dt;
            this.txtTk_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Dt.Value = ((object)(resources.GetObject("txtTk_Dt.Value")));
            // 
            // txtTen_Tk_Dt
            // 
            this.txtTen_Tk_Dt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Dt.CheckTextSearched = false;
            this.txtTen_Tk_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Dt.Enabled = false;
            this.txtTen_Tk_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Dt.Location = new System.Drawing.Point(229, 339);
            this.txtTen_Tk_Dt.Name = "txtTen_Tk_Dt";
            this.txtTen_Tk_Dt.OldValue = null;
            this.txtTen_Tk_Dt.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Tk_Dt.TabIndex = 13;
            this.txtTen_Tk_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Dt.Value = ((object)(resources.GetObject("txtTen_Tk_Dt.Value")));
            // 
            // lblTk_Ck
            // 
            this.lblTk_Ck.AutoSize = true;
            this.lblTk_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Ck.Location = new System.Drawing.Point(12, 361);
            this.lblTk_Ck.Name = "lblTk_Ck";
            this.lblTk_Ck.Size = new System.Drawing.Size(105, 14);
            this.lblTk_Ck.TabIndex = 4;
            this.lblTk_Ck.Text = "Tài khoản chiết khấu";
            // 
            // txtTk_Ck
            // 
            this.txtTk_Ck.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Ck.CheckTextSearched = false;
            this.txtTk_Ck.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Ck.FieldDisplay = "Ten_Tk";
            this.txtTk_Ck.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Ck.Location = new System.Drawing.Point(123, 358);
            this.txtTk_Ck.MaxLength = 32;
            this.txtTk_Ck.Name = "txtTk_Ck";
            this.txtTk_Ck.OldValue = null;
            this.txtTk_Ck.Size = new System.Drawing.Size(100, 20);
            this.txtTk_Ck.TabIndex = 31;
            this.txtTk_Ck.TableName = "DMTK";
            this.txtTk_Ck.TextDisplay = this.txtTen_Tk_Ck;
            this.txtTk_Ck.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Ck.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Ck.Value = ((object)(resources.GetObject("txtTk_Ck.Value")));
            // 
            // txtTen_Tk_Ck
            // 
            this.txtTen_Tk_Ck.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_Ck.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Ck.CheckTextSearched = false;
            this.txtTen_Tk_Ck.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Ck.Enabled = false;
            this.txtTen_Tk_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Ck.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Ck.Location = new System.Drawing.Point(229, 361);
            this.txtTen_Tk_Ck.Name = "txtTen_Tk_Ck";
            this.txtTen_Tk_Ck.OldValue = null;
            this.txtTen_Tk_Ck.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Tk_Ck.TabIndex = 13;
            this.txtTen_Tk_Ck.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Ck.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Ck.Value = ((object)(resources.GetObject("txtTen_Tk_Ck.Value")));
            // 
            // lblTk_BHTL
            // 
            this.lblTk_BHTL.AutoSize = true;
            this.lblTk_BHTL.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_BHTL.Location = new System.Drawing.Point(12, 383);
            this.lblTk_BHTL.Name = "lblTk_BHTL";
            this.lblTk_BHTL.Size = new System.Drawing.Size(95, 14);
            this.lblTk_BHTL.TabIndex = 4;
            this.lblTk_BHTL.Text = "Tk hàng bán trả lại";
            // 
            // txtTk_HBTL
            // 
            this.txtTk_HBTL.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_HBTL.CheckTextSearched = false;
            this.txtTk_HBTL.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_HBTL.FieldDisplay = "Ten_Tk";
            this.txtTk_HBTL.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_HBTL.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_HBTL.Location = new System.Drawing.Point(123, 380);
            this.txtTk_HBTL.MaxLength = 32;
            this.txtTk_HBTL.Name = "txtTk_HBTL";
            this.txtTk_HBTL.OldValue = null;
            this.txtTk_HBTL.Size = new System.Drawing.Size(100, 20);
            this.txtTk_HBTL.TabIndex = 32;
            this.txtTk_HBTL.TableName = "DMTK";
            this.txtTk_HBTL.TextDisplay = this.txtTen_Tk_HBTL;
            this.txtTk_HBTL.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_HBTL.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_HBTL.Value = ((object)(resources.GetObject("txtTk_HBTL.Value")));
            // 
            // txtTen_Tk_HBTL
            // 
            this.txtTen_Tk_HBTL.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_HBTL.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_HBTL.CheckTextSearched = false;
            this.txtTen_Tk_HBTL.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_HBTL.Enabled = false;
            this.txtTen_Tk_HBTL.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_HBTL.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_HBTL.Location = new System.Drawing.Point(229, 383);
            this.txtTen_Tk_HBTL.Name = "txtTen_Tk_HBTL";
            this.txtTen_Tk_HBTL.OldValue = null;
            this.txtTen_Tk_HBTL.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Tk_HBTL.TabIndex = 13;
            this.txtTen_Tk_HBTL.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_HBTL.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_HBTL.Value = ((object)(resources.GetObject("txtTen_Tk_HBTL.Value")));
            // 
            // lblMa_Nh_Vt
            // 
            this.lblMa_Nh_Vt.AutoSize = true;
            this.lblMa_Nh_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Nh_Vt.Location = new System.Drawing.Point(12, 405);
            this.lblMa_Nh_Vt.Name = "lblMa_Nh_Vt";
            this.lblMa_Nh_Vt.Size = new System.Drawing.Size(65, 14);
            this.lblMa_Nh_Vt.TabIndex = 4;
            this.lblMa_Nh_Vt.Text = "Nhóm vật tư";
            // 
            // txtMa_Nh_Vt
            // 
            this.txtMa_Nh_Vt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Nh_Vt.CheckTextSearched = false;
            this.txtMa_Nh_Vt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Nh_Vt.FieldDisplay = "Ten_Nh_Vt";
            this.txtMa_Nh_Vt.FirstFilter = "Nh_Cuoi_Vt = \'C\'";
            this.txtMa_Nh_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Nh_Vt.Location = new System.Drawing.Point(123, 402);
            this.txtMa_Nh_Vt.MaxLength = 32;
            this.txtMa_Nh_Vt.Name = "txtMa_Nh_Vt";
            this.txtMa_Nh_Vt.OldValue = null;
            this.txtMa_Nh_Vt.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Nh_Vt.TabIndex = 33;
            this.txtMa_Nh_Vt.TableName = "DMNHVT";
            this.txtMa_Nh_Vt.TextDisplay = this.txtTen_Nh_Vt;
            this.txtMa_Nh_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nh_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Nh_Vt.Value = ((object)(resources.GetObject("txtMa_Nh_Vt.Value")));
            // 
            // txtTen_Nh_Vt
            // 
            this.txtTen_Nh_Vt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Nh_Vt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Nh_Vt.CheckTextSearched = false;
            this.txtTen_Nh_Vt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nh_Vt.Enabled = false;
            this.txtTen_Nh_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nh_Vt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nh_Vt.Location = new System.Drawing.Point(229, 405);
            this.txtTen_Nh_Vt.Name = "txtTen_Nh_Vt";
            this.txtTen_Nh_Vt.OldValue = null;
            this.txtTen_Nh_Vt.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Nh_Vt.TabIndex = 13;
            this.txtTen_Nh_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Nh_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Nh_Vt.Value = ((object)(resources.GetObject("txtTen_Nh_Vt.Value")));
            // 
            // lblMa_Sp
            // 
            this.lblMa_Sp.AutoSize = true;
            this.lblMa_Sp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Sp.Location = new System.Drawing.Point(12, 427);
            this.lblMa_Sp.Name = "lblMa_Sp";
            this.lblMa_Sp.Size = new System.Drawing.Size(71, 14);
            this.lblMa_Sp.TabIndex = 4;
            this.lblMa_Sp.Text = "Mã sản phẩm";
            // 
            // txtMa_Sp
            // 
            this.txtMa_Sp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Sp.CheckTextSearched = false;
            this.txtMa_Sp.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Sp.FieldDisplay = "Ten_Sp";
            this.txtMa_Sp.FirstFilter = "Loai_Sp = \'C\'";
            this.txtMa_Sp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Sp.Location = new System.Drawing.Point(123, 424);
            this.txtMa_Sp.MaxLength = 32;
            this.txtMa_Sp.Name = "txtMa_Sp";
            this.txtMa_Sp.OldValue = null;
            this.txtMa_Sp.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Sp.TabIndex = 34;
            this.txtMa_Sp.TableName = "DMSP";
            this.txtMa_Sp.TextDisplay = this.txtTen_Sp;
            this.txtMa_Sp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Sp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Sp.Value = ((object)(resources.GetObject("txtMa_Sp.Value")));
            // 
            // txtTen_Sp
            // 
            this.txtTen_Sp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Sp.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Sp.CheckTextSearched = false;
            this.txtTen_Sp.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Sp.Enabled = false;
            this.txtTen_Sp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Sp.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Sp.Location = new System.Drawing.Point(229, 427);
            this.txtTen_Sp.Name = "txtTen_Sp";
            this.txtTen_Sp.OldValue = null;
            this.txtTen_Sp.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Sp.TabIndex = 13;
            this.txtTen_Sp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Sp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Sp.Value = ((object)(resources.GetObject("txtTen_Sp.Value")));
            // 
            // lblMa_Nh_Dm
            // 
            this.lblMa_Nh_Dm.AutoSize = true;
            this.lblMa_Nh_Dm.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Nh_Dm.Location = new System.Drawing.Point(12, 449);
            this.lblMa_Nh_Dm.Name = "lblMa_Nh_Dm";
            this.lblMa_Nh_Dm.Size = new System.Drawing.Size(81, 14);
            this.lblMa_Nh_Dm.TabIndex = 4;
            this.lblMa_Nh_Dm.Text = "Nhóm định mức";
            // 
            // txtMa_Nh_Dm
            // 
            this.txtMa_Nh_Dm.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Nh_Dm.CheckTextSearched = false;
            this.txtMa_Nh_Dm.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Nh_Dm.EmptyIsValid = true;
            this.txtMa_Nh_Dm.FieldDisplay = "Ten_Nh_Dm";
            this.txtMa_Nh_Dm.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Nh_Dm.FoundIsValid = true;
            this.txtMa_Nh_Dm.Location = new System.Drawing.Point(123, 446);
            this.txtMa_Nh_Dm.MaxLength = 32;
            this.txtMa_Nh_Dm.Name = "txtMa_Nh_Dm";
            this.txtMa_Nh_Dm.OldValue = null;
            this.txtMa_Nh_Dm.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Nh_Dm.TabIndex = 35;
            this.txtMa_Nh_Dm.TableName = "DMNHDM";
            this.txtMa_Nh_Dm.TextDisplay = this.txtTen_Nh_Dm;
            this.txtMa_Nh_Dm.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nh_Dm.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Nh_Dm.Value = ((object)(resources.GetObject("txtMa_Nh_Dm.Value")));
            // 
            // txtTen_Nh_Dm
            // 
            this.txtTen_Nh_Dm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Nh_Dm.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Nh_Dm.CheckTextSearched = false;
            this.txtTen_Nh_Dm.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nh_Dm.Enabled = false;
            this.txtTen_Nh_Dm.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nh_Dm.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nh_Dm.Location = new System.Drawing.Point(229, 449);
            this.txtTen_Nh_Dm.Name = "txtTen_Nh_Dm";
            this.txtTen_Nh_Dm.OldValue = null;
            this.txtTen_Nh_Dm.Size = new System.Drawing.Size(233, 13);
            this.txtTen_Nh_Dm.TabIndex = 13;
            this.txtTen_Nh_Dm.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Nh_Dm.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Nh_Dm.Value = ((object)(resources.GetObject("txtTen_Nh_Dm.Value")));
            // 
            // pnlPicture
            // 
            this.pnlPicture.BackColor = System.Drawing.SystemColors.Desktop;
            this.pnlPicture.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.pnlPicture.Controls.Add(this.PictureBox);
            this.pnlPicture.Location = new System.Drawing.Point(468, 272);
            this.pnlPicture.Name = "pnlPicture";
            this.pnlPicture.Size = new System.Drawing.Size(227, 193);
            this.pnlPicture.TabIndex = 12;
            // 
            // PictureBox
            // 
            this.PictureBox.BackgroundImage = global::QMVnSoft.Properties.Resources.NoPicture;
            this.PictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.PictureBox.Location = new System.Drawing.Point(3, 3);
            this.PictureBox.Name = "PictureBox";
            this.PictureBox.Size = new System.Drawing.Size(217, 183);
            this.PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.PictureBox.TabIndex = 0;
            this.PictureBox.TabStop = false;
            this.PictureBox.DoubleClick += new System.EventHandler(this.PictureBox_DoubleClick);
            // 
            // lblLoai_Vt0
            // 
            this.lblLoai_Vt0.AutoSize = true;
            this.lblLoai_Vt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLoai_Vt0.ForeColor = System.Drawing.Color.Blue;
            this.lblLoai_Vt0.Location = new System.Drawing.Point(152, 273);
            this.lblLoai_Vt0.Name = "lblLoai_Vt0";
            this.lblLoai_Vt0.Size = new System.Drawing.Size(225, 14);
            this.lblLoai_Vt0.TabIndex = 33;
            this.lblLoai_Vt0.Text = "0-Dịch vụ, 1-Thành phẩm, 2-Vật tư, hàng hóa";
            // 
            // lblIs_Stop0
            // 
            this.lblIs_Stop0.AutoSize = true;
            this.lblIs_Stop0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblIs_Stop0.ForeColor = System.Drawing.Color.Blue;
            this.lblIs_Stop0.Location = new System.Drawing.Point(152, 251);
            this.lblIs_Stop0.Name = "lblIs_Stop0";
            this.lblIs_Stop0.Size = new System.Drawing.Size(172, 14);
            this.lblIs_Stop0.TabIndex = 33;
            this.lblIs_Stop0.Text = "1-Hoạt động, 0-Đình chỉ hoạt động";
            // 
            // lblGia
            // 
            this.lblGia.AutoSize = true;
            this.lblGia.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblGia.ForeColor = System.Drawing.Color.Blue;
            this.lblGia.Location = new System.Drawing.Point(383, 119);
            this.lblGia.Name = "lblGia";
            this.lblGia.Size = new System.Drawing.Size(108, 14);
            this.lblGia.TabIndex = 33;
            this.lblGia.Text = "Giá mua || Giá bán >>";
            // 
            // txtDvt3
            // 
            this.txtDvt3.CheckTextSearched = false;
            this.txtDvt3.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDvt3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt3.Location = new System.Drawing.Point(123, 204);
            this.txtDvt3.MaxLength = 20;
            this.txtDvt3.Name = "txtDvt3";
            this.txtDvt3.OldValue = null;
            this.txtDvt3.Size = new System.Drawing.Size(100, 20);
            this.txtDvt3.TabIndex = 19;
            this.txtDvt3.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtDvt3.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtDvt3.Value = ((object)(resources.GetObject("txtDvt3.Value")));
            // 
            // lblHe_So3
            // 
            this.lblHe_So3.AutoSize = true;
            this.lblHe_So3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHe_So3.Location = new System.Drawing.Point(350, 207);
            this.lblHe_So3.Name = "lblHe_So3";
            this.lblHe_So3.Size = new System.Drawing.Size(35, 14);
            this.lblHe_So3.TabIndex = 4;
            this.lblHe_So3.Text = "Hệ số";
            // 
            // lblDvt3
            // 
            this.lblDvt3.AutoSize = true;
            this.lblDvt3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt3.Location = new System.Drawing.Point(12, 207);
            this.lblDvt3.Name = "lblDvt3";
            this.lblDvt3.Size = new System.Drawing.Size(77, 14);
            this.lblDvt3.TabIndex = 4;
            this.lblDvt3.Text = "Đơn vị quy đổi";
            // 
            // txtGia_Mua3
            // 
            this.txtGia_Mua3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Mua3.Location = new System.Drawing.Point(493, 204);
            this.txtGia_Mua3.Name = "txtGia_Mua3";
            this.txtGia_Mua3.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Mua3.OldValue = null;
            this.txtGia_Mua3.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Mua3.TabIndex = 21;
            this.txtGia_Mua3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Mua3.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Mua3.Value = ((object)(resources.GetObject("txtGia_Mua3.Value")));
            // 
            // txtHe_So3
            // 
            this.txtHe_So3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHe_So3.Location = new System.Drawing.Point(391, 204);
            this.txtHe_So3.Name = "txtHe_So3";
            this.txtHe_So3.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtHe_So3.OldValue = null;
            this.txtHe_So3.Size = new System.Drawing.Size(100, 20);
            this.txtHe_So3.TabIndex = 20;
            this.txtHe_So3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtHe_So3.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.RatioQuantity;
            this.txtHe_So3.Value = ((object)(resources.GetObject("txtHe_So3.Value")));
            // 
            // txtGia_Ban3
            // 
            this.txtGia_Ban3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Ban3.Location = new System.Drawing.Point(595, 204);
            this.txtGia_Ban3.Name = "txtGia_Ban3";
            this.txtGia_Ban3.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtGia_Ban3.OldValue = null;
            this.txtGia_Ban3.Size = new System.Drawing.Size(100, 20);
            this.txtGia_Ban3.TabIndex = 22;
            this.txtGia_Ban3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtGia_Ban3.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.txtGia_Ban3.Value = ((object)(resources.GetObject("txtGia_Ban3.Value")));
            // 
            // FormDmVtEditor
            // 
            this.AddTitleText = "Thêm mới vật tư, hàng hóa";
            this.ClientSize = new System.Drawing.Size(707, 500);
            this.Controls.Add(this.lblIs_Stop0);
            this.Controls.Add(this.lblLoai_Vt0);
            this.Controls.Add(this.txtTen_Nh_Dm);
            this.Controls.Add(this.txtTen_Sp);
            this.Controls.Add(this.lblGia);
            this.Controls.Add(this.txtTen_Nh_Vt);
            this.Controls.Add(this.txtTen_Tk_HBTL);
            this.Controls.Add(this.txtTen_Tk_Ck);
            this.Controls.Add(this.txtTen_Tk_Dt);
            this.Controls.Add(this.txtTen_Tk_Gv);
            this.Controls.Add(this.txtTen_Tk_Vt);
            this.Controls.Add(this.txtMa_Nh_Dm);
            this.Controls.Add(this.pnlPicture);
            this.Controls.Add(this.txtMa_Sp);
            this.Controls.Add(this.txtMa_Nh_Vt);
            this.Controls.Add(this.txtTk_HBTL);
            this.Controls.Add(this.txtTk_Ck);
            this.Controls.Add(this.txtTk_Dt);
            this.Controls.Add(this.txtTk_Gv);
            this.Controls.Add(this.txtTk_Vt);
            this.Controls.Add(this.txtIs_Stop);
            this.Controls.Add(this.txtLoai_Vt);
            this.Controls.Add(this.txtGia_Ban3);
            this.Controls.Add(this.txtGia_Ban2);
            this.Controls.Add(this.txtThue_Xuat);
            this.Controls.Add(this.txtHe_So3);
            this.Controls.Add(this.txtHe_So2);
            this.Controls.Add(this.txtSL_Ton_Max);
            this.Controls.Add(this.txtGia_Ban1);
            this.Controls.Add(this.txtGia_Ban0);
            this.Controls.Add(this.txtGia_Ban);
            this.Controls.Add(this.txtGia_Mua3);
            this.Controls.Add(this.txtGia_Mua2);
            this.Controls.Add(this.txtSL_Ton_Min);
            this.Controls.Add(this.txtHe_So1);
            this.Controls.Add(this.txtHe_So0);
            this.Controls.Add(this.txtGia_Mua1);
            this.Controls.Add(this.txtGia_Mua0);
            this.Controls.Add(this.txtGia_Mua);
            this.Controls.Add(this.lblTen_Vt_E);
            this.Controls.Add(this.lblIs_Stop);
            this.Controls.Add(this.lblMa_Nh_Dm);
            this.Controls.Add(this.lblMa_Sp);
            this.Controls.Add(this.lblMa_Nh_Vt);
            this.Controls.Add(this.lblTk_BHTL);
            this.Controls.Add(this.lblTk_Ck);
            this.Controls.Add(this.lblTen_Vt);
            this.Controls.Add(this.lblTk_Dt);
            this.Controls.Add(this.lblThue_Xuat);
            this.Controls.Add(this.lblTk_Gv);
            this.Controls.Add(this.lblLoai_Vt);
            this.Controls.Add(this.lblTk_Vt);
            this.Controls.Add(this.lblSL_Ton_Max);
            this.Controls.Add(this.lblDvt3);
            this.Controls.Add(this.lblDvt2);
            this.Controls.Add(this.lblSL_Ton_Min);
            this.Controls.Add(this.lblDvt1);
            this.Controls.Add(this.lblHe_So1);
            this.Controls.Add(this.lblDvt0);
            this.Controls.Add(this.lblHe_So3);
            this.Controls.Add(this.lblHe_So2);
            this.Controls.Add(this.lblDvt_E);
            this.Controls.Add(this.lblHe_So0);
            this.Controls.Add(this.lblDvt);
            this.Controls.Add(this.lblMa_Vt);
            this.Controls.Add(this.txtTen_Vt_E);
            this.Controls.Add(this.txtTen_Vt);
            this.Controls.Add(this.txtDvt3);
            this.Controls.Add(this.txtDvt2);
            this.Controls.Add(this.txtDvt1);
            this.Controls.Add(this.txtDvt0);
            this.Controls.Add(this.txtDvt_E);
            this.Controls.Add(this.txtDvt);
            this.Controls.Add(this.txtMa_Vt);
            this.EditTitleText = "Sửa vật tư, hàng hóa";
            this.FirstFreeCode = "VT1";
            this.Name = "FormDmVtEditor";
            this.SecondFreeCode = "VT2";
            this.Text = "Thêm mới vật tư, hàng hóa";
            this.ThirdFreeCode = "VT3";
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.txtMa_Vt, 0);
            this.Controls.SetChildIndex(this.txtDvt, 0);
            this.Controls.SetChildIndex(this.txtDvt_E, 0);
            this.Controls.SetChildIndex(this.txtDvt0, 0);
            this.Controls.SetChildIndex(this.txtDvt1, 0);
            this.Controls.SetChildIndex(this.txtDvt2, 0);
            this.Controls.SetChildIndex(this.txtDvt3, 0);
            this.Controls.SetChildIndex(this.txtTen_Vt, 0);
            this.Controls.SetChildIndex(this.txtTen_Vt_E, 0);
            this.Controls.SetChildIndex(this.lblMa_Vt, 0);
            this.Controls.SetChildIndex(this.lblDvt, 0);
            this.Controls.SetChildIndex(this.lblHe_So0, 0);
            this.Controls.SetChildIndex(this.lblDvt_E, 0);
            this.Controls.SetChildIndex(this.lblHe_So2, 0);
            this.Controls.SetChildIndex(this.lblHe_So3, 0);
            this.Controls.SetChildIndex(this.lblDvt0, 0);
            this.Controls.SetChildIndex(this.lblHe_So1, 0);
            this.Controls.SetChildIndex(this.lblDvt1, 0);
            this.Controls.SetChildIndex(this.lblSL_Ton_Min, 0);
            this.Controls.SetChildIndex(this.lblDvt2, 0);
            this.Controls.SetChildIndex(this.lblDvt3, 0);
            this.Controls.SetChildIndex(this.lblSL_Ton_Max, 0);
            this.Controls.SetChildIndex(this.lblTk_Vt, 0);
            this.Controls.SetChildIndex(this.lblLoai_Vt, 0);
            this.Controls.SetChildIndex(this.lblTk_Gv, 0);
            this.Controls.SetChildIndex(this.lblThue_Xuat, 0);
            this.Controls.SetChildIndex(this.lblTk_Dt, 0);
            this.Controls.SetChildIndex(this.lblTen_Vt, 0);
            this.Controls.SetChildIndex(this.lblTk_Ck, 0);
            this.Controls.SetChildIndex(this.lblTk_BHTL, 0);
            this.Controls.SetChildIndex(this.lblMa_Nh_Vt, 0);
            this.Controls.SetChildIndex(this.lblMa_Sp, 0);
            this.Controls.SetChildIndex(this.lblMa_Nh_Dm, 0);
            this.Controls.SetChildIndex(this.lblIs_Stop, 0);
            this.Controls.SetChildIndex(this.lblTen_Vt_E, 0);
            this.Controls.SetChildIndex(this.txtGia_Mua, 0);
            this.Controls.SetChildIndex(this.txtGia_Mua0, 0);
            this.Controls.SetChildIndex(this.txtGia_Mua1, 0);
            this.Controls.SetChildIndex(this.txtHe_So0, 0);
            this.Controls.SetChildIndex(this.txtHe_So1, 0);
            this.Controls.SetChildIndex(this.txtSL_Ton_Min, 0);
            this.Controls.SetChildIndex(this.txtGia_Mua2, 0);
            this.Controls.SetChildIndex(this.txtGia_Mua3, 0);
            this.Controls.SetChildIndex(this.txtGia_Ban, 0);
            this.Controls.SetChildIndex(this.txtGia_Ban0, 0);
            this.Controls.SetChildIndex(this.txtGia_Ban1, 0);
            this.Controls.SetChildIndex(this.txtSL_Ton_Max, 0);
            this.Controls.SetChildIndex(this.txtHe_So2, 0);
            this.Controls.SetChildIndex(this.txtHe_So3, 0);
            this.Controls.SetChildIndex(this.txtThue_Xuat, 0);
            this.Controls.SetChildIndex(this.txtGia_Ban2, 0);
            this.Controls.SetChildIndex(this.txtGia_Ban3, 0);
            this.Controls.SetChildIndex(this.txtLoai_Vt, 0);
            this.Controls.SetChildIndex(this.txtIs_Stop, 0);
            this.Controls.SetChildIndex(this.txtTk_Vt, 0);
            this.Controls.SetChildIndex(this.txtTk_Gv, 0);
            this.Controls.SetChildIndex(this.txtTk_Dt, 0);
            this.Controls.SetChildIndex(this.txtTk_Ck, 0);
            this.Controls.SetChildIndex(this.txtTk_HBTL, 0);
            this.Controls.SetChildIndex(this.txtMa_Nh_Vt, 0);
            this.Controls.SetChildIndex(this.txtMa_Sp, 0);
            this.Controls.SetChildIndex(this.pnlPicture, 0);
            this.Controls.SetChildIndex(this.txtMa_Nh_Dm, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_Vt, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_Gv, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_Dt, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_Ck, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_HBTL, 0);
            this.Controls.SetChildIndex(this.txtTen_Nh_Vt, 0);
            this.Controls.SetChildIndex(this.lblGia, 0);
            this.Controls.SetChildIndex(this.txtTen_Sp, 0);
            this.Controls.SetChildIndex(this.txtTen_Nh_Dm, 0);
            this.Controls.SetChildIndex(this.lblLoai_Vt0, 0);
            this.Controls.SetChildIndex(this.lblIs_Stop0, 0);
            this.pnlPicture.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.PictureBox)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        protected override void OnReset()
        {
            if ((base.NewChecked && (base.LocalCurrentRow == null)) && (base.LocalFormLister.ParentCurrentRow != null))
            {
                this.txtHe_So0.Value = 1;
                this.txtHe_So1.Value = 1;
                this.txtHe_So2.Value = 1;
                this.txtHe_So3.Value = 1;
                this.txtSL_Ton_Max.Value = 0;
                this.txtSL_Ton_Min.Value = 0;
                this.txtMa_Nh_Vt.Text = base.LocalFormLister.ParentCurrentRow[base.LocalFormLister.ParentFieldName].ToString();
                this.txtTen_Nh_Vt.Text = base.LocalFormLister.ParentCurrentRow["Ten_Nh_Vt"].ToString();
            }
            base.OnReset();
        }

        public override bool OnSave()
        {
            DataRow localCurrentRow;
            if (string.IsNullOrEmpty(this.txtMa_Vt.Text))
            {
                MessageBox.Show("Chưa nhập mã vật tư, hàng hóa!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtTen_Vt.Text))
            {
                MessageBox.Show("Chưa nhập tên vật tư, hàng hóa!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtDvt.Text))
            {
                MessageBox.Show("Chưa nhập đơn vị tính!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtMa_Nh_Vt.Text))
            {
                MessageBox.Show("Chưa nhập mã nhóm vật tư, hàng hóa!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (base.NewChecked)
            {
                localCurrentRow = base.LocalTable.NewRow();
            }
            else
            {
                localCurrentRow = base.LocalCurrentRow;
            }
            localCurrentRow["Ma_Vt"] = this.txtMa_Vt.Value;
            localCurrentRow["Ten_Vt"] = this.txtTen_Vt.Value;
            localCurrentRow["Ten_Vt_E"] = this.txtTen_Vt_E.Value;
            localCurrentRow["Dvt"] = this.txtDvt.Value;
            localCurrentRow["Dvt_E"] = this.txtDvt_E.Value;
            localCurrentRow["Gia_Mua"] = this.txtGia_Mua.Value;
            localCurrentRow["Gia_Ban"] = this.txtGia_Ban.Value;
            localCurrentRow["Dvt0"] = this.txtDvt0.Value;
            localCurrentRow["He_So0"] = this.txtHe_So0.Value;
            localCurrentRow["Gia_Mua0"] = this.txtGia_Mua0.Value;
            localCurrentRow["Gia_Ban0"] = this.txtGia_Ban0.Value;
            localCurrentRow["Dvt1"] = this.txtDvt1.Value;
            localCurrentRow["He_So1"] = this.txtHe_So1.Value;
            localCurrentRow["Gia_Mua1"] = this.txtGia_Mua1.Value;
            localCurrentRow["Gia_Ban1"] = this.txtGia_Ban1.Value;
            localCurrentRow["Dvt2"] = this.txtDvt2.Value;
            localCurrentRow["He_So2"] = this.txtHe_So2.Value;
            localCurrentRow["Gia_Mua2"] = this.txtGia_Mua2.Value;
            localCurrentRow["Gia_Ban2"] = this.txtGia_Ban2.Value;
            localCurrentRow["Dvt3"] = this.txtDvt3.Value;
            localCurrentRow["He_So3"] = this.txtHe_So3.Value;
            localCurrentRow["Gia_Mua3"] = this.txtGia_Mua3.Value;
            localCurrentRow["Gia_Ban3"] = this.txtGia_Ban3.Value;
            localCurrentRow["SL_Ton_Min"] = this.txtSL_Ton_Min.Value;
            localCurrentRow["SL_Ton_Max"] = this.txtSL_Ton_Max.Value;
            localCurrentRow["Thue_Xuat"] = this.txtThue_Xuat.Value;
            localCurrentRow["Is_Stop"] = this.txtIs_Stop.Value;
            localCurrentRow["Loai_Vt"] = this.txtLoai_Vt.Value;
            localCurrentRow["Tk_Vt"] = this.txtTk_Vt.Value;
            localCurrentRow["Ten_Tk_Vt"] = this.txtTen_Tk_Vt.Value;
            localCurrentRow["Tk_Gv"] = this.txtTk_Gv.Value;
            localCurrentRow["Ten_Tk_Gv"] = this.txtTen_Tk_Gv.Value;
            localCurrentRow["Tk_Dt"] = this.txtTk_Dt.Value;
            localCurrentRow["Ten_Tk_Dt"] = this.txtTen_Tk_Dt.Value;
            localCurrentRow["Tk_Ck"] = this.txtTk_Ck.Value;
            localCurrentRow["Ten_Tk_Ck"] = this.txtTen_Tk_Ck.Value;
            localCurrentRow["Tk_HBTL"] = this.txtTk_HBTL.Value;
            localCurrentRow["Ten_Tk_HB"] = this.txtTen_Tk_HBTL.Value;
            localCurrentRow["Ma_Nh_Vt"] = this.txtMa_Nh_Vt.Value;
            localCurrentRow["Ten_Nh_Vt"] = this.txtTen_Nh_Vt.Value;
            localCurrentRow["Ma_Sp"] = this.txtMa_Sp.Value;
            localCurrentRow["Ten_Sp"] = this.txtTen_Sp.Value;
            localCurrentRow["Ma_Nh_Dm"] = this.txtMa_Nh_Dm.Value;
            localCurrentRow["Ten_Nh_Dm"] = this.txtTen_Nh_Dm.Value;
            localCurrentRow["Ma_Loai1"] = base.txtMa_Loai1.Value;
            localCurrentRow["Ma_Loai2"] = base.txtMa_Loai2.Value;
            localCurrentRow["Ma_Loai3"] = base.txtMa_Loai3.Value;
            DmVtDataAccess access = new DmVtDataAccess();
            if (base.ShowMessage(localCurrentRow, access.SaveRow(base.NewChecked, localCurrentRow)))
            {
                return false;
            }
            if (base.NewChecked)
            {
                base.LocalTable.Rows.Add(localCurrentRow);
            }
            if (this.ib_PictureChanged)
            {
                AppDataAccess.SetPicture(base.LocalFormLister.LocalTableName, base.LocalFormLister.LocalKeyField, base.LocalCurrentRow[base.LocalFormLister.LocalKeyField], "Image_Name", "Image_Item", this.is_PicturePath);
            }
            base.LocalCurrentRow = localCurrentRow;
            base.LocalTable.AcceptChanges();
            this.txtMa_Vt.Focus();
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtMa_Vt.Value = base.LocalCurrentRow["Ma_Vt"];
            this.txtTen_Vt.Value = base.LocalCurrentRow["Ten_Vt"];
            this.txtTen_Vt_E.Value = base.LocalCurrentRow["Ten_Vt_E"];
            this.txtDvt.Value = base.LocalCurrentRow["Dvt"];
            this.txtDvt_E.Value = base.LocalCurrentRow["Dvt_E"];
            this.txtGia_Mua.Value = base.LocalCurrentRow["Gia_Mua"];
            this.txtGia_Ban.Value = base.LocalCurrentRow["Gia_Ban"];
            this.txtDvt0.Value = base.LocalCurrentRow["Dvt0"];
            this.txtHe_So0.Value = base.LocalCurrentRow["He_So0"];
            this.txtGia_Mua0.Value = base.LocalCurrentRow["Gia_Mua0"];
            this.txtGia_Ban0.Value = base.LocalCurrentRow["Gia_Ban0"];
            this.txtDvt1.Value = base.LocalCurrentRow["Dvt1"];
            this.txtHe_So1.Value = base.LocalCurrentRow["He_So1"];
            this.txtGia_Mua1.Value = base.LocalCurrentRow["Gia_Mua1"];
            this.txtGia_Ban1.Value = base.LocalCurrentRow["Gia_Ban1"];
            this.txtDvt2.Value = base.LocalCurrentRow["Dvt2"];
            this.txtHe_So2.Value = base.LocalCurrentRow["He_So2"];
            this.txtGia_Mua2.Value = base.LocalCurrentRow["Gia_Mua2"];
            this.txtGia_Ban2.Value = base.LocalCurrentRow["Gia_Ban2"];
            this.txtDvt3.Value = base.LocalCurrentRow["Dvt3"];
            this.txtHe_So3.Value = base.LocalCurrentRow["He_So3"];
            this.txtGia_Mua3.Value = base.LocalCurrentRow["Gia_Mua3"];
            this.txtGia_Ban3.Value = base.LocalCurrentRow["Gia_Ban3"];
            this.txtSL_Ton_Min.Value = base.LocalCurrentRow["SL_Ton_Min"];
            this.txtSL_Ton_Max.Value = base.LocalCurrentRow["SL_Ton_Max"];
            this.txtThue_Xuat.Value = base.LocalCurrentRow["Thue_Xuat"];
            this.txtIs_Stop.Value = base.LocalCurrentRow["Is_Stop"];
            this.txtLoai_Vt.Value = base.LocalCurrentRow["Loai_Vt"];
            this.txtTk_Vt.Value = base.LocalCurrentRow["Tk_Vt"];
            this.txtTen_Tk_Vt.Value = base.LocalCurrentRow["Ten_Tk_Vt"];
            this.txtTk_Gv.Value = base.LocalCurrentRow["Tk_Gv"];
            this.txtTen_Tk_Gv.Value = base.LocalCurrentRow["Ten_Tk_Gv"];
            this.txtTk_Dt.Value = base.LocalCurrentRow["Tk_Dt"];
            this.txtTen_Tk_Dt.Value = base.LocalCurrentRow["Ten_Tk_Dt"];
            this.txtTk_Ck.Value = base.LocalCurrentRow["Tk_Ck"];
            this.txtTen_Tk_Ck.Value = base.LocalCurrentRow["Ten_Tk_Ck"];
            this.txtTk_HBTL.Value = base.LocalCurrentRow["Tk_HBTL"];
            this.txtTen_Tk_HBTL.Value = base.LocalCurrentRow["Ten_Tk_HB"];
            this.txtMa_Nh_Vt.Value = base.LocalCurrentRow["Ma_Nh_Vt"];
            this.txtTen_Nh_Vt.Value = base.LocalCurrentRow["Ten_Nh_Vt"];
            this.txtMa_Sp.Value = base.LocalCurrentRow["Ma_Sp"];
            this.txtTen_Sp.Value = base.LocalCurrentRow["Ten_Sp"];
            this.txtMa_Nh_Dm.Value = base.LocalCurrentRow["Ma_Nh_Dm"];
            this.txtTen_Nh_Dm.Value = base.LocalCurrentRow["Ten_Nh_Dm"];
            base.txtMa_Loai1.Value = base.LocalCurrentRow["Ma_Loai1"];
            base.txtMa_Loai2.Value = base.LocalCurrentRow["Ma_Loai2"];
            base.txtMa_Loai3.Value = base.LocalCurrentRow["Ma_Loai3"];
            this.PictureBox.Image = AppDataAccess.GetPicture(base.LocalFormLister.LocalTableName, base.LocalFormLister.LocalKeyField, base.LocalCurrentRow[base.LocalFormLister.LocalKeyField], "Image_Name", "Image_Item");
            base.OnShow();
        }

        private void PictureBox_DoubleClick(object sender, EventArgs e)
        {
            this.ib_PictureChanged = true;
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.InitialDirectory = "";
            dialog.Filter = "JPEG (*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif|Bitmap files (*.bmp)|*.bmp|GIF (*.gif)|*.gif|TIFF (*.tif;*.tiff)|*.tif;*.tiff|All files (*.*)|*.*";
            dialog.CheckFileExists = true;
            dialog.ShowDialog();
            this.is_PicturePath = dialog.FileName;
            if (!this.is_PicturePath.Equals(string.Empty))
            {
                this.PictureBox.Image = new Bitmap(this.is_PicturePath);
            }
            else
            {
                this.PictureBox.Image = null;
            }
        }

        private void txtDvt0_GotFocus(object sender, EventArgs e)
        {
            if (this.txtDvt.Text.Equals(string.Empty))
            {
                this.txtDvt0.Text = string.Empty;
                this.txtDvt0.ReadOnly = true;
            }
            else
            {
                this.txtDvt0.ReadOnly = false;
            }
            if (this.txtDvt0.Text.Equals(string.Empty))
            {
                this.txtDvt1.Text = string.Empty;
                this.txtDvt1.ReadOnly = true;
            }
            else
            {
                this.txtDvt1.ReadOnly = false;
            }
            if (this.txtDvt1.Text.Equals(string.Empty))
            {
                this.txtDvt2.Text = string.Empty;
                this.txtDvt2.ReadOnly = true;
            }
            else
            {
                this.txtDvt2.ReadOnly = false;
            }
            if (this.txtDvt2.Text.Equals(string.Empty))
            {
                this.txtDvt3.Text = string.Empty;
                this.txtDvt3.ReadOnly = true;
            }
            else
            {
                this.txtDvt3.ReadOnly = false;
            }
            if (this.txtDvt0.Text.Equals(string.Empty))
            {
                this.txtHe_So0.Value = 1;
                this.txtGia_Mua0.Value = 0;
                this.txtGia_Ban0.Value = 0;
                this.txtHe_So0.ReadOnly = true;
                this.txtGia_Mua0.ReadOnly = true;
                this.txtGia_Ban0.ReadOnly = true;
            }
            else
            {
                this.txtHe_So0.ReadOnly = false;
                this.txtGia_Mua0.ReadOnly = false;
                this.txtGia_Ban0.ReadOnly = false;
            }
            if (this.txtDvt1.Text.Equals(string.Empty))
            {
                this.txtHe_So1.Value = 1;
                this.txtGia_Mua1.Value = 0;
                this.txtGia_Ban1.Value = 0;
                this.txtHe_So1.ReadOnly = true;
                this.txtGia_Mua1.ReadOnly = true;
                this.txtGia_Ban1.ReadOnly = true;
            }
            else
            {
                this.txtHe_So1.ReadOnly = false;
                this.txtGia_Mua1.ReadOnly = false;
                this.txtGia_Ban1.ReadOnly = false;
            }
            if (this.txtDvt2.Text.Equals(string.Empty))
            {
                this.txtHe_So2.Value = 1;
                this.txtGia_Mua2.Value = 0;
                this.txtGia_Ban2.Value = 0;
                this.txtHe_So2.ReadOnly = true;
                this.txtGia_Mua2.ReadOnly = true;
                this.txtGia_Ban2.ReadOnly = true;
            }
            else
            {
                this.txtHe_So2.ReadOnly = false;
                this.txtGia_Mua2.ReadOnly = false;
                this.txtGia_Ban2.ReadOnly = false;
            }
            if (this.txtDvt3.Text.Equals(string.Empty))
            {
                this.txtHe_So3.Value = 1;
                this.txtGia_Mua3.Value = 0;
                this.txtGia_Ban3.Value = 0;
                this.txtHe_So3.ReadOnly = true;
                this.txtGia_Mua3.ReadOnly = true;
                this.txtGia_Ban3.ReadOnly = true;
            }
            else
            {
                this.txtHe_So3.ReadOnly = false;
                this.txtGia_Mua3.ReadOnly = false;
                this.txtGia_Ban3.ReadOnly = false;
            }
        }

        private void txtMa_Sp_GotFocus(object sender, EventArgs e)
        {
            if (this.txtLoai_Vt.Text.Equals("1"))
            {
                this.txtMa_Sp.EmptyIsValid = false;
                this.txtMa_Sp.ReadOnly = false;
            }
            else
            {
                this.txtMa_Sp.Text = string.Empty;
                this.txtTen_Sp.Text = string.Empty;
                this.txtMa_Sp.EmptyIsValid = true;
                this.txtMa_Sp.ReadOnly = true;
            }
        }
    }
}

